import {
  createAction,
} from 'redux-actions'
import {
  common,
} from 'api'
import {
  createAjaxAction,
  fakeAjaxAction,
} from 'utils'


// export const requestAmList = createAction('request am list')
// export const recevieAmList = createAction('receive am list')
// export const fetchAmList = createAjaxAction(common.amList, requestAmList, recevieAmList)
// export const resetAmList = createAction('reset am list')
export const requestlogin = createAction('request login')
export const receivelogin = createAction('receive login')
export const fetchLogin = createAjaxAction(common.amLogin, requestlogin, receivelogin)


export const homeQueryInfo = createAjaxAction(common.homeQueryInfoaction)
export const homeLine = createAjaxAction(common.homeQuerybrokenLine)
export const materialquery = createAjaxAction(common.materialqueryaction)
export const contentQuery = createAjaxAction(common.contentQueryaction)
export const recommandAdd = createAjaxAction(common.recommandAddaction)
export const recommanddelete = createAjaxAction(common.recommanddeleteaction)
export const recommandsort = createAjaxAction(common.recommsortaction)
export const commonauth = createAjaxAction(common.authtype)
//获取基础数据
export const getbasetypefetch = createAjaxAction(common.getbasetype)
export const getmenuListfetch = createAjaxAction(common.getLeftmenuList)

//下拉框基础数据获取
export const getBaseSelect = createAjaxAction(common.getBaseSelectList)

//下拉框获取省份
export const getprovincefetch = createAjaxAction(common.getprovince)
//下拉框获取城市
export const getcityfetch = createAjaxAction(common.getcity)
//下拉框获取区
export const getareafetch = createAjaxAction(common.getarea)
//系统管理-修改密码
export const editpwdfetch = createAjaxAction(common.editpwd)

//省市区三级联动
export const getCommonRegion = createAjaxAction(common.getCommonRegionList)
